<?php

declare(strict_types=1);

namespace App\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

#[Constants]
class ErrorCode extends AbstractConstants
{
    /**
     * @Message("Server Error！")
     */
    const SERVER_ERROR = 500;

    /**
     * @Message("params.id_invalid")
     */
    const PARAMS_ID_INVALID = 100001;

    /**
     * @Message("mail.send_failed")
     */
    const MAIL_SEND_FAILD = 100002;

    /**
     * @Message("mail.sent_frequently")
     */
    const CODE_SENT_FREQUENTILY = 100003;

    /**
     * @Message("signUp.code_error")
     */
    const CODE_ERROR = 100004;
    /**
     * @Message ("signUp.code_expired")
     */
    const CODE_EXPIRED = 100005;

    /**
     * @Message("user.exists")
     */
    const USER_EXISTS = 200001;

    /**
     * @Message("form.error")
     */
    const FORM_ERROR = 300001;
}
